//
// Created by 谢哲 on 2021/4/13.
//

#include <iostream>
#include <algorithm>
#include <string>
using namespace  std;


int main(){
    string s;
    cin>>s;
    reverse(s.begin(), s.end());

    cout<<s;

    return 0;
}
